package com.caigou.modules.query.adpter

import android.widget.TextView
import com.caigou.comm.base.ext.prizeBallColor
import com.caigou.modules.query.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/12/19
 */
class BoSeItemAdapter(private val color: Int, dataset: MutableList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_prize_ball_list2, dataset) {
    override fun convert(holder: BaseViewHolder, item: String) {
        with(holder.getView<TextView>(R.id.item_prize_ball_tv_num)) {
            text = item
            setBackgroundResource(prizeBallColor(color))
        }
    }
}